<?php
/**
 * @Author: Marte
 * @Date:   2017-08-20 10:34:03
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-20 16:44:43
 */


?>
<div class="notice_page">
                <span class="notice_page_title">公告管理 <a href="admin_index.php?type=7" title="">发布公告</a></span>
                <table border="1">
                <thead>
                    <tr>
                    <th class="time">发布时间</th>
                    <th class="status">发布状态</th>
                    <!-- <th class="status">审核状态</th> -->
                    <th class="conment">公告标题</th>
                    <th class="name">发布者</th>
                    <th class="dell">删除</th>
                    <th class="readd">查看</th>
                    </tr>
                </thead>
                <tbody>
                <?php
                        while($_assoc2=$_result2->fetch_assoc())
                        {
                ?>
                    <tr><td><?php echo $_assoc2['time'];?></td>
                    <td class="go"><?php
                        $_status=$_assoc2['status'];
                        switch($_status)
                        {
                            case 1:echo "已发布";break;
                            case 0:echo "待核验";break;
                        }
                    ?></td>
                    <td class="conmentt"><?php echo $_assoc2['noticetitle'];?></td>
                    <td><?php echo $_assoc2['noticename'];?></td>
                    <td class="del"><a href="admin_index.php?type=2&delid=<?php echo $_assoc2['noticeid'];?>" title="">删除</a></td>
                    <td class="read"><a href="../notice.php?noticeid=<?php echo $_assoc2['noticeid'];?>" title="">查看</a></td></tr>

                <?php
                    }
                ?>
                </tbody>


            </table>
<div class="num1">
              <?php
                for($i=0;$i<$_pagesnum;$i++)
                {
                  echo '<a href="admin_index.php?type=2&page='.($i+1).'">'.($i+1).'</a>';
                }
                echo '<a href="admin_index.php?type=2&page='.($_page+1).'" >></a>';
            ?>
            </div>
            </div>

